'''
接收方 先接收再回应
'''
from socket import socket,AF_INET,SOCK_DGRAM
socket_ser = socket(AF_INET,SOCK_DGRAM)
ip_port = ('127.0.0.1',80)
socket_ser.bind(ip_port)

recv_data,recv_addr = socket_ser.recvfrom(1024)
print("接收到：",recv_data.decode('utf-8'))

data = input("输入回复")
socket_ser.sendto(data.encode('utf-8'),recv_addr)


socket_ser.close()